-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't run create_surfaces
system if not needed
#11720
don't run create_surfaces
system if not needed
#11720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked that the create_surfaces
system is effectively only run once at the beginning, so will not blocked the rendering even in Reactive mode after initial setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah cool. I didn't realize that not running prepare_windows on the main thread would help with reactive low power mode + pipelined rendering. Makes sense to me after I thought abo ut it for a bit. The render thread is being told to run the last time, but is being blocked because it wants to run prepare windows on the main thread, but the main thread is asleep. We should be careful about this in the move NonSend resources PR.
Yup it's a good surprise! |
# Objective - Change set of systems as I made a mistake in bevyengine#11672 - Don't block main when not needed - Fixes bevyengine#11235 ## Solution - add a run condition so that the system won't run and block main if not needed
Objective
Solution